<template>
  <div>
    <keep-alive>  
      <router-view v-if="$route.meta.keepAlive" />
    </keep-alive>

    <!-- 不需要被缓存的路由入口 -->
    <router-view v-if="!$route.meta.keepAlive" />
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
    }
  },
}
</script>

<style lang="less" scoped>
</style>